From 15b869518465e5d3682336e04129e8a4021dc19a Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Mon, 3 Apr 2006 18:32:43 +0100 Subject: [PATCH] The attached patch fixes a race condition that occurs if after the backend has been removed there are still requests pending. This patch flushed all the pending requests. Signed-off-by: Stefan Berger --- linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c b/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c index 14d6feb75e..6e118e7b24 100644 --- a/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c +++ b/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c @@ -55,6 +55,7 @@ static int tpmback_remove(struct xenbus_device *dev) be->backend_watch.node = NULL; } if (be->tpmif) { + vtpm_release_packets(be->tpmif, 0); tpmif_put(be->tpmif); be->tpmif = NULL; } -- 2.30.2